home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
222
/
plplot
/
examples
/
example02.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-13
|
640b
|
36 lines
/* Demonstrates multiple windows */
#include <stdio.h>
#include <math.h>
main()
{
int i,j;
float vmin,vmax;
char text[3];
/* Divide screen into 16 regions */
plstar(4,4);
plschr(0.0,3.5);
plfont(4);
for (i=0; i<=15; i++) {
sprintf(text,"%d",i);
pladv(0);
vmin = 0.1;
vmax = 0.9;
for (j=0; j<=2; j++) {
plvpor(vmin,vmax,vmin,vmax);
plwind(0.0,1.0,0.0,1.0);
plbox("bc",0.0,0,"bc",0.0,0);
vmin = vmin + 0.1;
vmax = vmax - 0.1;
}
plptex(0.5,0.5,1.0,0.0,0.5,text);
}
plend();
}